package com.patent.dao;

import com.patent.domain.po.PaymentRecord;
import com.patent.domain.vo.PaymentAndPatentVo;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface PaymentRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(PaymentRecord record);

    PaymentRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PaymentRecord record);

	Integer queryPaymentRecordInfo(Map<String, Object> map);

	/**
	 * 查询代缴记录
	 */
	List<PaymentAndPatentVo> queryPaymentRecord(Map<String,Object> queryMap);

	/**
	 * 批量添加专利订单
	 */
	void addPaymentRecordList(List<PaymentRecord> paymentRecordList);

	/**
	 * 通过专利id查记录
	 * @param patentId
	 * @return
	 */
	PaymentRecord selectRecordByPatentId(Integer patentId);
}